﻿@model DogsClub.WebUI.Models.Exposition
<link href="~/DatePicker/jquery-ui-DatePicker.css" rel="stylesheet" />
@{
    Layout = "~\\Views\\Shared\\_Layout4.cshtml";
}
<div>
    <div class="conteinerAddAvard">
        @using (Html.BeginForm())
        {
            @Html.AntiForgeryToken()
            <div class="ConteinerChengeUser">
                @Html.AntiForgeryToken()
                @Html.HiddenFor(model => model.Id)
                <div class="NameAdd ">Название</div>
                @Html.ValidationMessageFor(model => model.Name, "", new { @class = "validationMessage" })
                @Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "EditText2" } })

                <div class="NameAdd">Дата начала</div>
                @Html.ValidationMessageFor(model => model.DateStart, "", new { @class = "validationMessage" })
                @Html.EditorFor(model => model.DateStart, new { htmlAttributes = new { @class = "EditText2" } })
                
                <div class="NameAdd ">Описание</div>
                @Html.ValidationMessageFor(model => model.Description, "", new { @class = "validationMessage" })
                @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "EditText2" } })

                <input type="submit" value="Изменить" class="btn btn-info" id="newbuttonAddAvard" />
            </div>
        }
    </div>
</div>
    @section script{
        <script src="~/DatePicker/DataPicker(1-10).js"></script>
        <script src="~/DatePicker/DataPicker(1-11).js"></script>
        <script src="~/DatePicker/MyScriptDatePicker.js"></script>

        <script src="~/Scripts/jquery.validate.min.js"></script>
        <script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
        <script>
            $('#DateStart').datepicker({
            dateFormat: 'dd.mm.yy'
        });
        $(function () {
            $("#DateStart").datepicker();
        });
        $('#DateStart').datepicker('option', $.datepicker.regional["ru"]);

        jQuery(function ($) {
            $.datepicker.regional['ru'] = {
                monthNames: ['Яварь', 'Февраль', 'Март', 'Апрель',
                'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь',
                'Октябрь', 'Ноябрь', 'Декабрь'],
                dayNamesMin: ['Вс', 'Пн', 'Вт', 'Ср', 'Чт', 'Пт', 'Сб'],
                firstDay: 1,
            };
            $.datepicker.setDefaults($.datepicker.regional['ru']);
        });
        $.datepicker.setDefaults($.extend(
          $.datepicker.regional["ru"])
        );
        </script>
    }






